write iso after making changes to tree