DESC
Properly advance file pointers in jread, jwrite and jwritev.
EDESC
jread, jwrite and jwritev had a potential bug that a return value of 0 could
extend the file or leave the file pointer in an incorrect position. This patch
fixes it.

