code: static INode[] getINodeArray(INode inode) throws IOException {
      // calculate the depth of this inode from root
      int depth = getPathDepth(inode);
      INode[] inodes = new INode[depth];
  
      // fill up the inodes in the path from this inode to root
      for (int i = 0; i < depth; i++) {
        inodes[depth-i-1] = inode;
        inode = inode.parent;
      }
      return inodes;
    }
docs: Return the inode array representing the given inode's full path name
  
  @param inode an inode
  @return the node array representation of the given inode's full path
  @throws IOException if the inode is invalid