naz - I can't find my plant book, I think if you completely renew the soil & spray the plant ( depending whether the plant in question can have its leaves wetted ) with water, it should fix the problem.
They are called scarid flies and they live in the soil eating the decaying matter - maybe your houseplants have some dying leaves etc. Also if the soil is too wet that doesnt help.