added unit test for > 1024 writes
refactored NewBufferedWritev* to collapse to one function