writev - final version (a tester)