Standard Japanese is used for written communication. Kansai-ben can be used for writing any non-formal communication such as writing messages for friends and social media but the writing system is the same as Standard Japanese.