The dynamics of Bianchi I universes in $R^n$ cosmologies with torsion