Handle writing buffer overflow