writer: optimize writes
writer: optimize writes

Store data into Writer and prevent heap allocation

before:
BenchmarkWrites 50000000 55.3 ns/op

after:
BenchmarkWrites 50000000 36.7 ns/op

bamiaux/iobit,bamiaux/iobit