now reorder from flat into a tree links are stored in some kind of balanced binary tree check that everything is visited at least, and at most once similarly with the blocks of the file. was thinking of moving this to Dirent.to_tree instead.