If your getting algae it's due to an imbalance of nutrients, light and CO2.
What kind of algae is it?
Also, I've heard that ottos are wild caught, so they use a chemical to catch them, temporally stunning them. This may be why your ottos are dying. Or due to having a small tank, the puffers are more territorial, killing the ottos?