Woops, fix mmap optimisation by actually writing keys

Just because the level is mapped, doesn't mean the write buffer is
always mapped too. We can just as easily be writing from heap.

Therefore a memcpy is required from the buffer to the map.