Ultimately everything is the pilots decision however there are a lot of things around that, e.g. Aircraft performance, ATC requirements, wind, turbulance, SOP's to name but a few. All things being equal though an aircraft will fly as high as possible which is limited by weight. As fuel is...