Shake your other fruit. Did any more flies appear? If so, eat, can, or freeze fruit those that are over-ripe and repeat the process. Your kitchen should be clear -for awhile. Fruit flies will find fruit no matter where it is, lay eggs, and rapidly a few flies will become a fog of them. If the flies are not laying eggs in rotting fruit, they'll try the counter top compost bin, and lastly the kitchen sink drain. See this link for ten more traps and a way to deal with the drain.
Fruit flies are one of the most studied insects and have been used heavily in biological research. Click on the fruit fly link to read up on them (and their uncanny sex life). Below, one of the more unusual sex life of insects photos I have ever seen, thanks in part to the photographer's insert.