For any reasonable definition, I think gays and IV drug users are a tiny slice of the population. A quick google search suggests that 1-3% of the population is gay.
If we assume that HIV rates among blacks are distributed the same way as in the general population, then we find that black gays alone account for about 40% of HIV infections in 2008, while making up 0.1-0.3% of the population. Unfortunately, the data I linked to is not granular enough to prove this.
A comparison: gay sex was about 55-170x more dangerous than straight sex in 2008 (depending on whether 3% or 1%of america is gay). Unprotected sex is only about 6-20x more dangerous than sex with a condom (depending on which set of wikipedia numbers you pick).
http://en.wikipedia.org/wiki/Condom#In_preventing_STDs