Correctly report written bytes on linked connections.