Everything is not predetermined. Otherwise there is no purpose to "free will" and arguably, it cannot exist.
Humans have the free will to choose to do good or evil in this life. Muslims believe that even though God knows people's ultimate destination, they themselves do not have that knowledge. Therefore, whatever actions people commit are based on their free will for which they are held accountable.