What are these pesky gnat things called?

Does anyone know the name of these pesky gnats? I accidentaly left a slice of apple on my balcony and have discovered the larvae of this gnat on/in the apple. Are the larvae safe to feed fish?

Fruit. Flies. Yep. Fish. Love that. Stuff.