finish fix_badsector v0.2
fix some bugs in fix_bad_sector v0.2