write-tree is now willing to write empty tree