Fix write_to_virtual_fs