Added isFlashBufferNull into DelayedWrite