FIX: BUG_ON code relocated

BUG_ON to count # dirties in segment should be after migrated not before

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>