got rid of WriteAll function, according to docs Write should work the same way