parameterized write buffer size