[openEuler-1.0-LTS] jfs: add check read-only before truncation in jfs_truncate_nolock()