A photosynthetic organism that fixed more nitrogen than it needed would (1) be at a terrible competitive disadvantage (nitrogen fixation requires a great deal of energy), and (2) would be a source of fixed nitrogen when it died, boosting the growth of other plants that could leech off its efforts.