buffer size already checked in buffer pool
when rarely conditon ,write queue is empty and cur writing not finished
write header to buffer and not direct write bytes
and child log example
Volatile内部变量没有必要，因为一个线程操纵