What do you mean with "bad sector" and how did you find it?
I'm asking because every drive (both hdd as well as ssd) has certain amount of spare-sectors (not visible to users) and handles this automatically: when some sector becomes "weak" (problems with reading/writing), it is marked as "bad" and one of spare-sectors is re-mapped to it. This also happens even if some sector suddenly becomes "bad" (without previous warnings), but in this case data saved in that sector is lost.
So I recommend to check full S.M.A.R.T. status of your drive, see how many bad sectors you have, how many (un)correctable errors, how many re-allocated sectors, etc. It is not necessary to change drive as soon as single sector becomes bad. But the only true way of "fixing" bad sector is replacing drive.