From your own source, the government _made_ about 2 billion off of the BofA bailout. This includes the 2 billion write-off of TARP funds they gave to the home mortgage group.
Not defending BofA, just saying your source material doesn't make the point you think it does.