Return the correct amount of written bytes if nothing could be written