MINOR update documentation for onBeforeWrite()