write the finished tree to a nexus file