fix WriteTo that was missing the read offset

Signed-off-by: Tom Grennan <tom@apptimist.co>