the so-far unused (I believe) write(File) was calling uv_fs_close instead of uv_fs_write