writefs: write a file tree to a virtual disk