I have included a photo showing how the electromagnetic wave types are partitioned in the radiation balance. It is from NASA's CERES page. As you can see, more infrared is leaving Earth than enters as solar radiation and yet this is still a picture of equilibrium where the net radiation is zero.
Here each arrow is 1 arbitrary unit of energy. Things to note are that (1) each layer emits as much as it receives, (2) there's a lot more than 1 unit of flux within the atmosphere, (3) there's a steady 1 unit of net flux through the atmosphere and (4) this equilibrium is maintained by 1 unit in and 1 unit out at the top of atmosphere.