1: define a local device.
2: fetch minor no.
2.a: check for errors.
3: assign previously allocated scull_dev to a local scull_dev.
3.a: check for errors.
3.b: cleanup_module();(if minor no. is wrong)
4: check file open in write mode by && O_ACCMOD with flags.
4.a: truncate the file.
5: preserve the local device into scull_dev.

