rio.c/rioFdsetWrite: test EINTR and inc broken without full write

May be we could test EINTR for `write` when it is interrupted.
When it is not fully written, we should also inc the broken as well as we mark the error state.