Thanks for your bug report. The /write command is working correctly for me here. Can you provide a short, simple script that reproduces the issue for you?