PowerBuilder 10 and higher are Unicode (2 bytes per string character) and PowerBuilder 9 and lower are Ansi (1 byte per string character). This is something to keep in mind when moving from PB 8.
PB 10.5 has a new function FileWriteEx which will allow you to write the entire blob at one time. Try using one call to FileWriteEx passing the entire blob variable instead.