It matters what your goals are. If you want to live in an English speaking country or make friends with English speakers, speaking will probably be more important to practice. If you want to have perfect grammar, take proficiency tests, or spend time on English websites, writing will be more worth your time.