Fix bug where _write_full() fails if interrupted.
Fix bug where _write_full() fails if interrupted.

If write() is interrupted, this would raise SPARKEY_INTERNAL_ERROR instead
of resuming/retrying the write.

pombredanne/sparkey,spotify/sparkey