make the write buffer size configurable

@phoet