code: void replaceNode(String path, INodeFile oldnode, INodeFile newnode)
                                                     throws IOException {
      replaceNode(path, null, oldnode, newnode, true);
    }
docs: Replaces the specified inode with the specified one.