write mean average rank to file