oops, fix for file size < chunk size

Signed-off-by: Iliyan Malchev <malchev@google.com>