don't abort writing when buffer is unmodified fixes #31