Fixed bug in mf_write. 'Cap off' byte written at wrong offset.