uploading a sketch atmega16 using arduino IDE

Try shorting JP3 on the Usbasp for slow SCK which should work for your 1MHz internal clock.