Improved _createFile method

The current method was doing a lot of redundant work by traversing the
tree multiple times. Now we use the traverseToInode method to get as far
down into the tree as possible and create the rest of the files from
there.