libknc: move from write(2) to writev(2) to improve efficiency.

And fix up prototypes returning struct iovec to use int as a count
in line with writev(2).