Correct wonky pointer arthimetic in mmap write