WriteMem(file_id, blk_id, len[, offset])
lenbytes from the memory block specified by
blk_idto the file specified by
file_id. The data is read from the memory block at the
offset, which you can specify in the homonymous optional argument. The data is written to the file at the current cursor position which you can modify using the Seek() command.