Fixed BTree and BTreeWriter to update the root pointer on disk