check write breakpoints before writing, not after