work on balanced tree file io