rename write_check
lib/sample.c: add reserveonly option

Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>