number of downloaded pieces is updated from resume file.
fixed return value from download_block method.
tested that resume file is updated.