pcm_file: treat write(2) returning 0 as an error in safe_write()
A write(2) of a non-zero length returning 0 means no progress was
made and is not expected for a regular file or a blocking pipe. The
previous code broke out of the loop and returned a short positive
count, which snd_pcm_file_write_bytes() treats as non-fatal, silently
dropping the remaining bytes without reporting an error. Return -EIO
instead so the "write all or report error" contract is total.