Don't allow role to delete published content even its their own
Simply search for and disable the permission "Delete any content" for any / all content types for the role of "writer".

This is also a very handy module to help you find permissions https://www.drupal.org/project/permissions_filter