implement write_all for Windows