blob: allow to commit no more data than was written
blob: do not overwrite flags in eblob_plain_write()
Merge pull request #22 from SaveTheRbtz/master

Bugfixes and improved robustness.