Change the writeable flag back to its original state when finished.