From what I have learned work is only done when a force displaced something against another force
This is incorrect. Work is done whenever a force causes (or influences) displacement. That's all. It has got nothing to do with whether or not it fights against other forces. If you push a spaceship in outer space with no other forces present, then you are doing work (which the spaceship absorbs as kinetic energy). Mathematically: $$W=\int \vec F\cdot \mathrm d\vec s$$