Add delalloc write compare

Signed-off-by: Liu Bo <liub.liubo@gmail.com>