MB-100: fix write permissions

Change-Id: I85786872178fb9f705ecc4ccb4289506d9b3f152
Reviewed-on: http://review.couchbase.org/24546
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
Tested-by: Pavel Paulau <pavel.paulau@gmail.com>