Fix bug where _write_full() fails if interrupted.

If write() is interrupted, this would raise SPARKEY_INTERNAL_ERROR instead
of resuming/retrying the write.
Merge pull request #21 from spotify/krka/write_full_bugfix

write() may write fewer bytes than requested, and since this is not