Because the file is in the windows\system folder and is probably in use, windows protests it from deletion, hense the error.
Your best bet is to boot into safe mode (check your win98 help to see how) and then run the avast scan again. Hopefully that will stop the virus being loaded, so not in use allowing it to be removed.