WriteMem(file_id, blk_id, len[, offset])
len bytes from the memory block specified by
blk_id to 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.