It really depends on the writer's intent. Did Ali volunteer to pick up the mangoes, afterwhich he threw them down to me under the tree? If that is the case, then the first statement is correct as it stands.
The second sentence could also be correct; however it has a different meaning altogether. Ali volunteered to pick the mangoes as well as volunteered to throw them down to me under the