client: use kgio_write across the board