merge changes from about dealing with read only volumes.

https://github.com/tgulacsi/weed-fs/commit/97482255d555f152ea99052aba7d0a0163235e39.diff
accurate error messages during writing
fix compilation error