You can indeed write a respectful letter to the Chief Justice of the High Court or Supreme Court to address grievances that impact a significant number of people. Such a letter may be treated as a Public Interest Litigation (PIL) if the Chief Justice finds the issue exceptional and decides to take cognizance. There is nothing illegal about writing such a letter.